.hide-scroll {
  $scrollSize: 6px;
  position: relative;

  &:hover {
    .scroll-mask {
      opacity: 1;
    }
  }

  .scroll-main {
    overflow: auto;

    &::-webkit-scrollbar {
      display: none;
    }
  }

  .scroll-mask {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: .3s;

    .scroll-bar {
      width: 6px;
      background: rgba(0, 0, 0, 0.4);
      border-radius: 5px;
      position: absolute;
      right: 0;
    }
  }
}